package com.xiaohongshu.kafkademo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.xiaohongshu.kafkademo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    
    @Select("SELECT * FROM user WHERE username LIKE CONCAT('%', #{keyword}, '%')")
    List<User> findByUsernameContaining(String keyword);
}
